package com.wanxs.mall.product.dto;

import com.wanxs.mall.common.exception.groups.AddGroupInterface;
import com.wanxs.mall.common.exception.groups.UpdateGroupInterface;
import com.wanxs.mall.common.validator.ListValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
import java.io.Serializable;


/**
 * 品牌
 *
 * @author wanxs 130001934@qq.com
 * @since 1.0.0 2023-09-01
 */
@Data
@ApiModel(value = "品牌")
public class BrandDTO implements Serializable {
    private static final long serialVersionUID = 1L;

	@NotNull(message = "更新数据品牌ID必须不能为空",groups = {UpdateGroupInterface.class})
	@Null(message = "添加数据品牌ID必须为空",groups = {AddGroupInterface.class})
	@ApiModelProperty(value = "品牌id")
	private Long brandId;

	@NotBlank
	@ApiModelProperty(value = "品牌名")
	private String name;
	@NotBlank
	@ApiModelProperty(value = "品牌logo地址")
	private String logo;

	@ApiModelProperty(value = "介绍")
	private String descript;

	@ListValue(val = {0,1})
	@ApiModelProperty(value = "显示状态[0-不显示；1-显示]")
	private Integer showStatus;

	@ApiModelProperty(value = "检索首字母")
	private String firstLetter;

	@ApiModelProperty(value = "排序")
	private Integer sort;


}